Sending SCCM Task Sequence Notifications to Teams

2021, Mar 26

Quick blog post on how to send a notification about your Task Sequence to a teams channel, useful if you want to keep an eye on certain task sequences as a whole or just parts of the sequence.

  1. Head over to msendpointmgr and get a copy of the MicrosoftTeams-OSD-Successful-v0.4.ps1 (msendpointmgr)
  2. Edit the Powershell and add your uri from teams webhook and save. Incoming Connector
  3. Edit the task sequence you wish to setup notifications from Incoming Connector
  4. Click Add - General - "Run PowerShell Script" Incoming Connector
  5. Click the "Enter PowerShell Script" button and click "Add Script" Incoming Connector
  6. Click the "Open" button Incoming Connector
  7. Navigate to the location of the PowerShell Script and click Open Incoming Connector
  8. This has copied the the powershell script to the task sequence if need to make a edit click the edit box in bottom left hand corner and click "OK" to close the window Incoming Connector
  9. You will now be back at the properties window, You can now set other options such as Parameters/Output to task sequence/start in etc... for testing set the "PowerShell execution policy" to "bypass" and click "OK" Incoming Connector
  10. Now when you run your task sequence when the script is run you will now receive notification in teams. Task Sequence Notificaiton